/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaNuevaLocalidad.java
 *
 * Created on 08/06/2011, 11:36:24
 */

package interfacesGraficas;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JTextField;

/**
 *
 * @author eduardo
 */
public class PantallaNuevaLocalidad extends javax.swing.JFrame {

    /** Creates new form PantallaNuevaLocalidad */
    public PantallaNuevaLocalidad() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        campoCodigoLocalidad = new javax.swing.JTextField();
        campoNombreLocalidad = new javax.swing.JTextField();
        campoProvincia = new javax.swing.JTextField();
        comboBoxZona = new javax.swing.JComboBox();
        jToolBar1 = new javax.swing.JToolBar();
        botonGuardarLocalidad = new javax.swing.JButton();
        botonSalirLocalidad = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Localidad"));
        jPanel1.setLayout(new java.awt.GridBagLayout());

        jLabel1.setText("Código:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(12, 10, 0, 0);
        jPanel1.add(jLabel1, gridBagConstraints);

        jLabel2.setText("Localidad:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(16, 10, 0, 0);
        jPanel1.add(jLabel2, gridBagConstraints);

        jLabel3.setText("Provincia:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(16, 10, 0, 0);
        jPanel1.add(jLabel3, gridBagConstraints);

        jLabel4.setText("Zona:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(16, 10, 0, 0);
        jPanel1.add(jLabel4, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 130;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 10, 0, 10);
        jPanel1.add(campoCodigoLocalidad, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 130;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(12, 10, 0, 10);
        jPanel1.add(campoNombreLocalidad, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.ipadx = 130;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(12, 10, 0, 10);
        jPanel1.add(campoProvincia, gridBagConstraints);

        comboBoxZona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.ipadx = 70;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(12, 10, 10, 10);
        jPanel1.add(comboBoxZona, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.insets = new java.awt.Insets(30, 10, 20, 0);
        getContentPane().add(jPanel1, gridBagConstraints);

        jToolBar1.setRollover(true);

        botonGuardarLocalidad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Save_30.png"))); // NOI18N
        botonGuardarLocalidad.setToolTipText("Guardar Localidad");
        botonGuardarLocalidad.setFocusable(false);
        botonGuardarLocalidad.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonGuardarLocalidad.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonGuardarLocalidad);

        botonSalirLocalidad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        botonSalirLocalidad.setToolTipText("Salir");
        botonSalirLocalidad.setFocusable(false);
        botonSalirLocalidad.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonSalirLocalidad.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonSalirLocalidad);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.ipadx = 250;
        gridBagConstraints.ipady = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        getContentPane().add(jToolBar1, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
   /* public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PantallaNuevaLocalidad().setVisible(true);
            }
        });
    }*/

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonGuardarLocalidad;
    private javax.swing.JButton botonSalirLocalidad;
    private javax.swing.JTextField campoCodigoLocalidad;
    private javax.swing.JTextField campoNombreLocalidad;
    private javax.swing.JTextField campoProvincia;
    private javax.swing.JComboBox comboBoxZona;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JToolBar jToolBar1;
    // End of variables declaration//GEN-END:variables

    public JButton getBotonGuardarLocalidad() {
        return botonGuardarLocalidad;
    }

    public void setBotonGuardarLocalidad(JButton botonGuardarLocalidad) {
        this.botonGuardarLocalidad = botonGuardarLocalidad;
    }

    public JButton getBotonSalirLocalidad() {
        return botonSalirLocalidad;
    }

    public void setBotonSalirLocalidad(JButton botonSalirLocalidad) {
        this.botonSalirLocalidad = botonSalirLocalidad;
    }

    public JTextField getCampoCodigoLocalidad() {
        return campoCodigoLocalidad;
    }

    public void setCampoCodigoLocalidad(JTextField campoCodigoLocalidad) {
        this.campoCodigoLocalidad = campoCodigoLocalidad;
    }

    public JTextField getCampoNombreLocalidad() {
        return campoNombreLocalidad;
    }

    public void setCampoNombreLocalidad(JTextField campoNombreLocalidad) {
        this.campoNombreLocalidad = campoNombreLocalidad;
    }

    public JTextField getCampoProvincia() {
        return campoProvincia;
    }

    public void setCampoProvincia(JTextField campoProvincia) {
        this.campoProvincia = campoProvincia;
    }

    public JComboBox getComboBoxZona() {
        return comboBoxZona;
    }

    public void setComboBoxZona(JComboBox comboBoxZona) {
        this.comboBoxZona = comboBoxZona;
    }


    
}
